home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
C++ Files Library
/
3D & Offscreen for MacApp 3
/
3D & Offscreen Sample.sea
/
3D & Offscreen Sample
/
TOffscreenAdorner.h
< prev
next >
Wrap
Text File
|
1993-05-10
|
3KB
|
86 lines
/*************************************************************************
File: TOffscreenAdorner.h
C O P Y R I G H T N O T I C E
Copyright ⌐ 1993 Eric Hanig.
All Rights Reserved.
D E S C R I P T I O N
This class, when attached to a view, will create and handle all
offscreen drawing. It does this by creating a TOffscreenDrawEnvironment
object and replaces the views current TDrawingEnvironment with
it. If for any reason offscreen drawing can't take place, then
normal drawing will occur. If RemoveFromView is called, the old
TDrawingEnvironment is replaced and the view acts normally.
Due to flaws in MacApp 3, this adorner must be manually attached to
the view.
Classes Defined Here:
Ñ
Change History
Rev 1 Tue, Apr 13, 1993 @ 4:59 PM Hanig
Creation
*************************************************************************/
/*************************************************************************/
#ifndef __TOffscreenAdorner__
#define __TOffscreenAdorner__
/*************************************************************************/
/* Include Files */
/*************************************************************************/
#ifndef __UADORNERS__
#include "UAdorners.h"
#endif
#ifndef __TOffscreenDrawEnvironment__
#include "TOffscreenDrawEnvironment.h"
#endif
/*************************************************************************/
/* Constants */
/*************************************************************************/
/*************************************************************************/
/* Class Declaration */
/*************************************************************************/
class TOffscreenAdorner : public TAdorner
{
protected:
TDrawingEnvironment* fOldDrawingEnvironment;
TOffscreenDrawEnvironment* fOffscreenDrawingEnvironment;
Boolean fUseGlobalGWorld;
public:
TOffscreenAdorner(void);
virtual pascal void AddedToView(TView* itsView);
virtual pascal void RemovedFromView(TView* itsView);
virtual pascal void ViewChangedFrame (TView* itsView,
const VRect& oldFrame,
const VRect& newFrame,
Boolean invalidate);
virtual pascal Boolean DoesAdorn (TView* itsView);
virtual pascal void Initialize();
virtual pascal void Free();
virtual pascal void IOffscreenAdorner(IDType itsID, Boolean freeOnDeletion, Boolean useGlobalGWorld);
};
/*************************************************************************/
#endif
/*************************************************************************/